from selenium.webdriver.common.by import By
import logging
from utils.base_aolai import BaseObject


class SignObject(BaseObject):
    def __init__(self):
        super().__init__()
        self.lg_text = (By.ID, 'com.yunmall.lc:id/textView1')

    def findLg_text(self):
        return self.search_ele(self.lg_text)


class SignHandle:
    def __init__(self):
        self.so = SignObject()

    def gotoLogin(self):
        logging.info("点击已有账号，去登陆")
        self.so.findLg_text().click()


class SignTask:
    logging.info("注册")
    sh = SignHandle()
    @classmethod
    def intoLogin(cls):
        cls.sh.gotoLogin()
